package com.lkhd.manage.pojo;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "`category`")
public class Category implements Serializable{
    @Id
    @Column(name = "`categoryId`")
    private Long categoryid;

    @Column(name = "`name`")
    private String name;

    /**
     * 0 上架 1下架
     */
    @Column(name = "`status`")
    private Integer status;

    @Column(name = "`createDate`",insertable=false)
    private Date createdate;

    @Column(name = "`updataDate`",updatable=false)
    private Date updatadate;

    /**
     * @return categoryId
     */
    public Long getCategoryid() {
        return categoryid;
    }

    /**
     * @param categoryid
     */
    public void setCategoryid(Long categoryid) {
        this.categoryid = categoryid;
    }

    /**
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取0 上架 1下架
     *
     * @return status - 0 上架 1下架
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 设置0 上架 1下架
     *
     * @param status 0 上架 1下架
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * @return createDate
     */
    public Date getCreatedate() {
        return createdate;
    }

    /**
     * @param createdate
     */
    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    /**
     * @return updataDate
     */
    public Date getUpdatadate() {
        return updatadate;
    }

    /**
     * @param updatadate
     */
    public void setUpdatadate(Date updatadate) {
        this.updatadate = updatadate;
    }
}